 |
 |
 |
 |
|
|
|
|
|
|
 |
 |
 |
 |
 |
 |
struct
student *new(){
|
|
struct student *aux;
|
|
aux = new student;
|
|
if (aux == NULL)
|
|
cout << “1: Out of memory";
|
return (aux);
|
|
};
|
|
|
|
|
|
 |
 |
 |
 |
 |
 |
void
new1(struct student **John){
|
|
struct student *aux;
|
|
aux = new student;
|
|
if (aux == NULL)
|
|
cout << “2: Out of memory";
|
else *John = aux;
|
|
};
|
|
|
|
|